import { logInfo, logWarn, logError } from '../logger.js';
export async function wuliu_rule(wuliulist) {
  console.log(wuliulist);

  const first = wuliulist[0] && (wuliulist[0].includes('已派送至本') || wuliulist[0].includes('已投递') || wuliulist[0].includes('二楼仓库') || wuliulist[0].includes('代收') || wuliulist[0].includes('签收'));

  const second = wuliulist[1] && wuliulist[1].includes('上溪');

  const third = wuliulist[2] && (wuliulist[2].includes('上溪') || wuliulist[2].includes('金华义乌龙海店'));

  // console.log('检测物流', first && (second || third));

  logInfo(`检测物流:${Boolean(first && (second || third))}`);

  return first && (second || third);
}